﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="SimpleModel.cs" company="XamlNinja">
//   2011 Richard Griffin and Ollie Riches
// </copyright>
// --------------------------------------------------------------------------------------------------------------------

namespace WP7Contrib.Collections.Tests.Models
{
    using Common;

    public class SimpleModel : BaseModel
    {
        private string stringValue;
        private double doubleValue;

        public SimpleModel(string stringValue, double doubleValue)
        {
            this.stringValue = stringValue;
            this.doubleValue = doubleValue;
        }

        public string StringValue
        {
            get
            {
                return this.stringValue;
            }

            set
            {
                this.SetPropertyAndNotify(ref this.stringValue, value, () => this.StringValue);
            }
        }

        public double DoubleValue
        {
            get
            {
                return this.doubleValue;
            }

            set
            {
                this.SetPropertyAndNotify(ref this.doubleValue, value, () => this.DoubleValue);
            }
        }
    }
}
